package com.vm.osm.business.dto.eam.equ;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

/**
 * 查询企业设备信息请求
 *
 * @author Xuerong Xue
 */
@Data
public class SearchEamEquReq implements Serializable {
    @ApiModelProperty("企业Id")
    @JsonIgnore
    private String enterprise_id;
    @ApiModelProperty("会话Id")
    @JsonIgnore
    private String session_id;
    @ApiModelProperty("选择查询类型（1：设备名称、2：设备编码、3：使用人、4：服务商、5：供应商、6：品牌、7：型号）")
    private Byte select_type;
    @ApiModelProperty("选择值")
    private String select_value;
    @ApiModelProperty("部门Id")
    private String department_id;
    @ApiModelProperty("设备类型Id列表")
    private List<String> equ_type_ids;
    @ApiModelProperty("分页数")
    private Integer page_num;
    @ApiModelProperty("分页大小")
    private Integer page_size;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("enterprise_id", enterprise_id)
                .add("session_id", session_id)
                .add("select_type", select_type)
                .add("select_value", select_value)
                .add("department_id", department_id)
                .add("equ_type_ids", null == equ_type_ids ? null : Arrays.toString(equ_type_ids.toArray()))
                .add("page_num", page_num)
                .add("page_size", page_size)
                .toString();
    }
}
